dofile (getScriptPath() .. "\\..\\patterns\\spy.lua")

dofile (getScriptPath() .. "\\..\\patterns\\ticks.lua")

script_name = string.gsub(string.gsub(debug.getinfo(1).short_src, "%.[^%.]*$", ""), "^.*[\\/]", "")
processor.ds.threads_number = 6
--spy.handlers_period = 500
spy.no_notify = true
spy.quotes = "watch_quotes.txt"
lib.global.liquidity_limit = nil

processor:AddInit(function()
	spy.callbacks[INTERVAL_TICK] = {ticks = ticks.callback}
	spy.handlers[INTERVAL_TICK] = {ticks = ticks.tick}
	table.sinsert(ticks.OnTick, 1, ticks.save)
end)

processor:AddInit(function()
	processor:SetTimer(2500)
end)

processor:AddHandler("OnDate", function()
	ticks.saver = {}
end)
	
